/**
 * Created by xiangyufang on 2016/11/10.
 */
var ambientApi = function(){

    var api = {};
    api.root_path = DyyBase.root_path;
    //例子
    api.url_pipe_base_search = function () {
        return api.root_path + '/pipe/pipeLineInfo/query.json';
    };

    //第三方管道查询
    api.url_ae_pipe_search = function () {
        return api.root_path + '/ae/aePipeLine/query.json';
    };
    //交通设施查询
    api.url_ae_traffic_search = function () {
        return api.root_path + '/ae/trafficFacilities/query.json';
    };
    //查询特定场所
    api.url_ae_specific_search = function () {
        return api.root_path + '/ae/specificPlace/query.json';
    };
    //地下排污排水
    api.url_ae_sewer_search = function () {
        return api.root_path + '/ae/sewer/query.json';
    };
    //地质灾害
    api.url_ae_geologic_search = function () {
        return api.root_path + '/ae/geologicHazard/query.json';
    };
    //应急资源
    api.url_ae_emergency_search = function () {
        return api.root_path + '/ae/emergencyResource/query.json';
    };
    //难以维修接近
    api.url_ae_difficulty_search = function () {
        return api.root_path + '/ae/difficultyRepair/query.json';
    };
    //管道占压
    api.url_ae_press_search = function () {
        return api.root_path + '/ae/pressObject/query.json';
    };
    //人口分布
    api.url_ae_population_search = function () {
        return api.root_path + '/ae/populationDistribution/query.json';
    };

    //第三方管道删除
    api.url_ae_pipe_delete = function () {
        return api.root_path + '/ae/aePipeLine/delete.json';
    };
    //交通设施删除
    api.url_ae_traffic_delete = function () {
        return api.root_path + '/ae/trafficFacilities/delete.json';
    };
    //查询特定场所删除
    api.url_ae_specific_delete = function () {
        return api.root_path + '/ae/specificPlace/delete.json';
    };
    //地下排污排水删除
    api.url_ae_sewer_delete = function () {
        return api.root_path + '/ae/sewer/delete.json';
    };
    //地质灾害删除
    api.url_ae_geologic_delete = function () {
        return api.root_path + '/ae/geologicHazard/delete.json';
    };
    //应急资源删除
    api.url_ae_emergency_delete = function () {
        return api.root_path + '/ae/emergencyResource/delete.json';
    };
    //难以维修接近删除
    api.url_ae_difficulty_delete = function () {
        return api.root_path + '/ae/difficultyRepair/delete.json';
    };
    //管道占压删除
    api.url_ae_press_delete = function () {
        return api.root_path + '/ae/pressObject/delete.json';
    };

    //新建编辑页面/ae/aePipeLine/index.html
    api.url_ae_addEdit = function (id,type) {
        return api.root_path + '/ae/aeIndex/'+ type +'/toEdit.html?id=' + id;
    };

    //选框获取数据通用url
    api.url_common_form_type = function (type) {
        return api.root_path + '/comm/getCode.json?majorCode='+ type +'&level=1';
    };

    // 删除上传照片
    api.url_external_delete_img = function () {
        return api.root_path + '/comm/deleteAttachment.json';
    };

    //第三方管道新建页面提交
    api.url_ae_pipe_save = function () {
        return api.root_path + '/ae/aePipeLine/edit.json';
    };
    //交通设施新建页面提交
    api.url_ae_traffic_save = function () {
        return api.root_path + '/ae/trafficFacilities/edit.json';
    };
    //特定场所新建页面提交
    api.url_ae_specific_save = function () {
        return api.root_path + '/ae/specificPlace/edit.json';
    };
    //地下排污排水新建页面提交
    api.url_ae_sewer_save = function () {
        return api.root_path + '/ae/sewer/edit.json';
    };
    //地址灾害新建页面提交
    api.url_ae_geologic_save = function () {
        return api.root_path + '/ae/geologicHazard/edit.json';
    };
    //应急资源新建页面提交
    api.url_ae_emergency_save = function () {
        return api.root_path + '/ae/emergencyResource/edit.json';
    };
    //难以维修接近新建页面提交
    api.url_ae_difficulty_save = function () {
        return api.root_path + '/ae/difficultyRepair/edit.json';
    };
    //管道占压新建页面提交
    api.url_ae_press_save = function () {
        return api.root_path + '/ae/pressObject/edit.json';
    };


    //提交成功返回第三方管道
    api.url_ae_pipe_success = function () {
        return api.root_path + '/ae/aePipeLine/index.html';
    };
    //提交成功返回交通设施
    api.url_ae_traffic_success = function () {
        return api.root_path + '/ae/trafficFacilities/index.html';
    };
    //提交成功返回特定场所
    api.url_ae_specific_success = function () {
        return api.root_path + '/ae/specificPlace/index.html';
    };
    //提交成功返回地下排污排水
    api.url_ae_sewer_success = function () {
        return api.root_path + '/ae/sewer/index.html';
    };
    //提交成功返回应急资源s
    api.url_ae_geologic_success = function () {
        return api.root_path + '/ae/geologicHazard/index.html';
    };
    //提交成功返回应急资源s
    api.url_ae_emergency_success = function () {
        return api.root_path + '/ae/emergencyResource/index.html';
    };
    //提交成功返回难以维修接近
    api.url_ae_difficulty_success = function () {
        return api.root_path + '/ae/difficultyRepair/index.html';
    };
    //提交成功返回管道占压
    api.url_ae_press_success = function () {
        return api.root_path + '/ae/pressObject/index.html';
    };

    //审核页面
    api.url_ae_examine = function (id,type) {
        return api.root_path + '/ae/aeIndex/'+ type +'/toAudit.html?id=' + id;
    };
    //第三方管道查询审核数据
    api.url_ae_pipe_examine = function () {
        return api.root_path + '/ae/aePipeLine/find.json';
    };
    //交通设施查询审核数据
    api.url_ae_traffic_examine = function () {
        return api.root_path + '/ae/trafficFacilities/find.json';
    };
    //查询特定场所审核数据
    api.url_ae_specific_examine = function () {
        return api.root_path + '/ae/specificPlace/find.json';
    };
    //地下排污排水审核数据
    api.url_ae_sewer_examine = function () {
        return api.root_path + '/ae/sewer/find.json';
    };
    //地质灾害审核数据
    api.url_ae_geologic_examine = function () {
        return api.root_path + '/ae/geologicHazard/find.json';
    };
    //应急资源审核数据
    api.url_ae_emergency_examine = function () {
        return api.root_path + '/ae/emergencyResource/find.json';
    };
    //难以维修接近审核数据
    api.url_ae_difficulty_examine = function () {
        return api.root_path + '/ae/difficultyRepair/find.json';
    };
    //管道占压审核数据
    api.url_ae_press_examine = function () {
        return api.root_path + '/ae/pressObject/find.json';
    };

    //第三方管道查询审核提交
    api.url_ae_pipe_pass = function () {
        return api.root_path + '/ae/aePipeLine/audit.json';
    };
    //交通设施查询审核数据
    api.url_ae_traffic_pass = function () {
        return api.root_path + '/ae/trafficFacilities/audit.json';
    };
    //查询特定场所审核提交
    api.url_ae_specific_pass = function () {
        return api.root_path + '/ae/specificPlace/audit.json';
    };
    //地下排污排水审核提交
    api.url_ae_sewer_pass = function () {
        return api.root_path + '/ae/sewer/audit.json';
    };
    //地质灾害审核提交
    api.url_ae_geologic_pass = function () {
        return api.root_path + '/ae/geologicHazard/audit.json';
    };
    //应急资源审核提交
    api.url_ae_emergency_pass = function () {
        return api.root_path + '/ae/emergencyResource/audit.json';
    };
    //难以维修接近审核提交
    api.url_ae_difficulty_pass = function () {
        return api.root_path + '/ae/difficultyRepair/audit.json';
    };
    //管道占压审核提交
    api.url_ae_press_pass = function () {
        return api.root_path + '/ae/pressObject/audit.json';
    };


    return api;
}();